$(function () {

  mainCon();
  function mainCon() {
    const id = location.search.split('=')[1];
    console.log(id);
    $.ajax({
      url: window.BigNew.index_article,
      data: { id },
      success: function (response) {
        console.log(response);
        $("#mainContent").html(template('conTemp', response.data));
      }
    });
  }
})